package cn.trigram.validation.annotation.validator;

import cn.trigram.validation.annotation.EnumValueCheck;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class EnumValueForStringValidator extends AbstractEnumValueValidator implements ConstraintValidator<EnumValueCheck, String> {

    @Override
    public void initialize(EnumValueCheck constraintAnnotation) {
        super.initialize(constraintAnnotation);
    }

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        return super.isValid(value, context);
    }
}
